window.onload = function() {
    visitorLogin();

}
// 游客登录接口
function visitorLogin() {
    $ajax({
      method: "post",
      url: "http://cloud-music.pl-fe.cn/register/anonimous",
      success: function (e) {
        console.log(e);
        if(e.code === 200){
          //把登录换为个人名字
          const Ologin = document.querySelector(".login");
          console.log(Ologin);
          Ologin.innerHTML = `欢迎用户${e.userId}`;
        }
      },
    });
  };